package com.gitee.swsk33.algorithms.graph.admatrix;

public class Test {

	public static void main(String[] args) {
		Integer[] integers = {1, 2, 3, 4, 5, 6, 7, 8};
		ADMatrixGraph<Integer> graph = new ADMatrixGraph<>(integers, false);
		graph.addArc(0, 1);
		graph.addArc(0, 2);
		graph.addArc(1, 3);
		graph.addArc(1, 4);
		graph.addArc(3, 4);
		graph.addArc(3, 7);
		graph.addArc(2, 5);
		graph.addArc(2, 6);
		graph.addArc(5, 6);
		System.out.println(graph);
		graph.doBFS();
	}

}